<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<ul>
		<li>1</li>
		<li>2</li>
		<li>3</li>
		<li>4</li>
		<li>5</li>
		<li>6</li>
		<li>7</li>
		<li>8</li>
	</ul>
	<script>
		var ul = document.getElementsByTagName('ul')[0];
		ul.onclick = function (e) {
			var event = e || window.event;
			var target = event.target || event.srcElement;
			console.log(target.innerHTML);
			// console.log(this.innerHTML);
		}
	</script>
</body>
</html>